// vite.config.ts
import { defineConfig, loadEnv } from "file:///G:/%E9%A1%B9%E7%9B%AE/vue3-project/node_modules/.pnpm/vite@5.0.4_sass@1.69.5/node_modules/vite/dist/node/index.js";
import AutoImport from "file:///G:/%E9%A1%B9%E7%9B%AE/vue3-project/node_modules/.pnpm/unplugin-auto-import@0.17.1/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///G:/%E9%A1%B9%E7%9B%AE/vue3-project/node_modules/.pnpm/unplugin-vue-components@0.25.2_vue@3.3.9/node_modules/unplugin-vue-components/dist/vite.mjs";
import { ElementPlusResolver } from "file:///G:/%E9%A1%B9%E7%9B%AE/vue3-project/node_modules/.pnpm/unplugin-vue-components@0.25.2_vue@3.3.9/node_modules/unplugin-vue-components/dist/resolvers.mjs";
import Icons from "file:///G:/%E9%A1%B9%E7%9B%AE/vue3-project/node_modules/.pnpm/unplugin-icons@0.18.0/node_modules/unplugin-icons/dist/vite.js";
import IconsResolver from "file:///G:/%E9%A1%B9%E7%9B%AE/vue3-project/node_modules/.pnpm/unplugin-icons@0.18.0/node_modules/unplugin-icons/dist/resolver.js";
import path from "path";
import vue from "file:///G:/%E9%A1%B9%E7%9B%AE/vue3-project/node_modules/.pnpm/@vitejs+plugin-vue@4.5.0_vite@5.0.4_vue@3.3.9/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import VueJsx from "file:///G:/%E9%A1%B9%E7%9B%AE/vue3-project/node_modules/.pnpm/@vitejs+plugin-vue-jsx@3.1.0_vite@5.0.4_vue@3.3.9/node_modules/@vitejs/plugin-vue-jsx/dist/index.mjs";
var __vite_injected_original_dirname = "G:\\\u9879\u76EE\\vue3-project";
var env = loadEnv("mode", process.cwd(), "");
var { VITE_API_BASE, VITE_API_PREFIX, VITE_API_URL } = env;
var vite_config_default = defineConfig({
  base: VITE_API_BASE,
  server: {
    host: "0.0.0.0",
    port: 8080,
    strictPort: false,
    open: true,
    proxy: {
      [VITE_API_PREFIX]: {
        target: VITE_API_URL,
        changeOrigin: true,
        rewrite: (path2) => path2.replace(new RegExp(`^${VITE_API_PREFIX}`), "")
      }
    }
  },
  plugins: [
    vue(),
    VueJsx(),
    AutoImport({
      imports: ["vue", "vue-router"],
      resolvers: [
        ElementPlusResolver(),
        // Auto import icon components
        // 自动导入图标组件
        IconsResolver({
          prefix: "Icon"
        })
      ],
      dts: "./src/types/auto-imports.d.ts",
      eslintrc: {
        enabled: true
        // Default `false`
      }
    }),
    Components({
      resolvers: [
        // Auto register icon components
        // 自动注册图标组件
        IconsResolver({
          enabledCollections: ["ep"]
        }),
        ElementPlusResolver({
          importStyle: "sass",
          directives: true,
          version: "2.1.5"
        })
      ],
      dts: "./src/types/components.d.ts"
    }),
    // 图标自动下载
    Icons({
      autoInstall: true
    })
  ],
  esbuild: {
    jsxFactory: "h",
    jsxFragment: "Fragment"
  },
  css: {
    preprocessorOptions: {
      scss: {
        additionalData: `@use "./src/styles/theme.scss" as *;
        @use "./src/styles/index.scss";`
      }
    }
  },
  resolve: {
    alias: {
      "@": path.resolve(__vite_injected_original_dirname, "src")
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJHOlxcXFxcdTk4NzlcdTc2RUVcXFxcdnVlMy1wcm9qZWN0XCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCJHOlxcXFxcdTk4NzlcdTc2RUVcXFxcdnVlMy1wcm9qZWN0XFxcXHZpdGUuY29uZmlnLnRzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ltcG9ydF9tZXRhX3VybCA9IFwiZmlsZTovLy9HOi8lRTklQTElQjklRTclOUIlQUUvdnVlMy1wcm9qZWN0L3ZpdGUuY29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